package com.bbcare.exportExcel.plat.entity;	

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @name:宝宝问卷记录	
 * @author:	
 * @createTime: 
 */	
	
@Entity	
@Table(name="t_babyQuestionRecord")	
public class BabyQuestionRecord {	
	
	@Id	
	@GenericGenerator(name="systemUUID",strategy="uuid")	
	@GeneratedValue(generator="systemUUID")	
	@Column(name="_id")
	private String id;
	
	//状态	
	@Column(name="_status")
	private String status;	//  1、新问卷  2、未完成     3、已提交   4、待评测    5、被拒绝    6、已测评   7、已过期   8、完成      9、未提交
	
	//问卷名	
	@Column(name="_name")
	private String name;	
	
	//问卷说明	
	@Column(name="_note")
	private String note;	
	
	//未完成Id	
	@Column(name="_questionId")
	private String questionId;	
	
	//问卷总分	
	@Column(name="_totalScore")
	private Integer totalScore;	
	
	//获得分数	
	@Column(name="_gainScore")
	private Integer gainScore;	
	
	//系统测评	
	@Column(name="_sysNote")
	private String sysNote;	
	
	//健康等级Id
	@Column(name="_healthLevelId")
	private String healthLevelId;
	
	//健康等级	
	@Column(name="_healthLevel")
	private String healthLevel;	
	
	//系统健康指导	
	@Column(name="_sysHealthGuide")
	private String sysHealthGuide;	//指导的title  类型于“2-3个月训练指导”
	
	//指导时间	
	@Column(name="_sysHealthGuideTime")
	private Date sysHealthGuideTime;	
	
	//医生团队Id	
	@Column(name="_doctorTeamId")
	private String doctorTeamId;
	
	//医患群Id
	@Column(name="_groupId")
	private String groupId;
	
	//医生建议	
	@Column(name="_doctorAdvice")
	private String doctorAdvice;	
	
	//医生建议时间	
	@Column(name="_doctorAdviceTime")
	private Date doctorAdviceTime;	
	
	//创建时间	
	@Column(name="_createTime")
	private Date createTime;	
	
	
	@Column(name="_babyQuestionnairePackageId")
	private String babyQuestionnairePackageId;
	
	//所属问卷
	@ManyToOne
    @JoinColumn(name="_questionnaire_id")
    private Questionnaire questionnaire;
    
    //关联问卷名称
	@Column(name="_questionnaire_name")
    private String questionnaireName;
	
	//包含宝宝问卷详情
	@OneToMany(mappedBy="babyQuestionRecord")
    private List<BabyQuestionDetail> babyQuestionDetails;
	
	//所属宝宝问卷包
	@ManyToOne
    @JoinColumn(name="_babyQuestionnairePackage_id")
    private BabyQuestionnairePackage babyQuestionnairePackage;
    
    //关联宝宝问卷包名称
	@Column(name="_babyQuestionnairePackage_name")
    private String babyQuestionnairePackageName;
	
	//当有数据更新是记录的时间
	@Column(name="_updateTime")
	private Date updateTime;
	
	//备注
	@Column(name="_clientNote")
	private String clientNote;
	
	//宝宝Id
	@Column(name="_babyId")
	private String babyId;
	
	//宝宝年龄
	@Column(name="_babyAge")
	private Integer babyAge;//宝宝年龄   天数
	
	@Column(name="_questionnaireId")
	private String questionnaireId;
	
	//显示医生端的状态
	@Column(name="_doctorStatus")
	private String doctorStatus;
	
	//题目总数
	@Column(name="_totalNum")
	private Integer totalNum;
	
	//问卷提交时间
	@Column(name="_submitTime")
	private Date submitTime;
	
	//过期时间
	@Column(name="_outTime")
	private Date outTime;
	
	//是否是生长发育
	@Column(name="_isGrowth")
	private Boolean isGrowth;
	
	public BabyQuestionRecord() {
		super();
	}

	public BabyQuestionRecord(String id, Questionnaire questionnaire) {
		super();
		this.id = id;
		this.questionnaire = questionnaire;
	}

	public BabyQuestionRecord(String id, String babyQuestionnairePackageName) {
		super();
		this.id = id;
		this.babyQuestionnairePackageName = babyQuestionnairePackageName;
	}

	public String getId() {	
		return id;	
	}	
	
	public void setId(String id) {	
		this.id = id;	
	}
	
	public String getStatus() {	
		return status;	
	}	
	
	public void setStatus(String status) {	
		this.status = status;	
	}
	
	public String getName() {	
		return name;	
	}	
	
	public void setName(String name) {	
		this.name = name;	
	}
	
	public String getNote() {	
		return note;	
	}	
	
	public void setNote(String note) {	
		this.note = note;	
	}
	
	public String getQuestionId() {	
		return questionId;	
	}	
	
	public void setQuestionId(String questionId) {	
		this.questionId = questionId;	
	}
	
	public Integer getTotalScore() {	
		return totalScore;	
	}	
	
	public void setTotalScore(Integer totalScore) {	
		this.totalScore = totalScore;	
	}
	
	public Integer getGainScore() {	
		return gainScore;	
	}	
	
	public void setGainScore(Integer gainScore) {	
		this.gainScore = gainScore;	
	}
	
	public String getSysNote() {	
		return sysNote;	
	}	
	
	public void setSysNote(String sysNote) {	
		this.sysNote = sysNote;	
	}
	
	public String getHealthLevel() {	
		return healthLevel;	
	}	
	
	public void setHealthLevel(String healthLevel) {	
		this.healthLevel = healthLevel;	
	}
	
	public String getSysHealthGuide() {	
		return sysHealthGuide;	
	}	
	
	public void setSysHealthGuide(String sysHealthGuide) {	
		this.sysHealthGuide = sysHealthGuide;	
	}

	public Date getSysHealthGuideTime() {	
		return sysHealthGuideTime;	
	}	
	
	public void setSysHealthGuideTime(Date sysHealthGuideTime) {	
		this.sysHealthGuideTime = sysHealthGuideTime;	
	}
	
	public String getDoctorTeamId() {	
		return doctorTeamId;	
	}	
	
	public void setDoctorTeamId(String doctorTeamId) {	
		this.doctorTeamId = doctorTeamId;	
	}
	
	public String getDoctorAdvice() {	
		return doctorAdvice;	
	}	
	
	public void setDoctorAdvice(String doctorAdvice) {	
		this.doctorAdvice = doctorAdvice;	
	}

	public Date getDoctorAdviceTime() {	
		return doctorAdviceTime;	
	}	
	
	public void setDoctorAdviceTime(Date doctorAdviceTime) {	
		this.doctorAdviceTime = doctorAdviceTime;	
	}

	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public Date getCreateTime() {	
		return createTime;	
	}	
	
	public void setCreateTime(Date createTime) {	
		this.createTime = createTime;	
	}
	
	public Questionnaire getQuestionnaire() {	
		return questionnaire;	
	}
	
	public void setQuestionnaire(Questionnaire questionnaire) {	
		this.questionnaire = questionnaire;	
	}
	
	public String getQuestionnaireName() {	
		return questionnaireName;	
	}
	
	public void setQuestionnaireName(String questionnaireName) {	
		this.questionnaireName = questionnaireName;	
	}
	
	public List<BabyQuestionDetail> getBabyQuestionDetails() {	
		return babyQuestionDetails;	
	}
	
	public void setBabyQuestionDetails(List<BabyQuestionDetail> babyQuestionDetails) {	
		this.babyQuestionDetails = babyQuestionDetails;	
	}
	
	public BabyQuestionnairePackage getBabyQuestionnairePackage() {	
		return babyQuestionnairePackage;	
	}
	
	public void setBabyQuestionnairePackage(BabyQuestionnairePackage babyQuestionnairePackage) {	
		this.babyQuestionnairePackage = babyQuestionnairePackage;	
	}
	
	public String getBabyQuestionnairePackageName() {	
		return babyQuestionnairePackageName;	
	}
	
	public void setBabyQuestionnairePackageName(String babyQuestionnairePackageName) {	
		this.babyQuestionnairePackageName = babyQuestionnairePackageName;	
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getClientNote() {
		return clientNote;
	}

	public void setClientNote(String clientNote) {
		this.clientNote = clientNote;
	}

	public String getHealthLevelId() {
		return healthLevelId;
	}

	public void setHealthLevelId(String healthLevelId) {
		this.healthLevelId = healthLevelId;
	}

	public String getBabyId() {
		return babyId;
	}

	public void setBabyId(String babyId) {
		this.babyId = babyId;
	}

	public String getBabyQuestionnairePackageId() {
		return babyQuestionnairePackageId;
	}

	public void setBabyQuestionnairePackageId(String babyQuestionnairePackageId) {
		this.babyQuestionnairePackageId = babyQuestionnairePackageId;
	}

	public String getQuestionnaireId() {
		return questionnaireId;
	}

	public void setQuestionnaireId(String questionnaireId) {
		this.questionnaireId = questionnaireId;
	}

	public String getDoctorStatus() {
		return doctorStatus;
	}

	public void setDoctorStatus(String doctorStatus) {
		this.doctorStatus = doctorStatus;
	}

	public Integer getTotalNum() {
		return totalNum;
	}

	public void setTotalNum(Integer totalNum) {
		this.totalNum = totalNum;
	}

	public Date getSubmitTime() {
		return submitTime;
	}

	public void setSubmitTime(Date submitTime) {
		this.submitTime = submitTime;
	}

	public Date getOutTime() {
		return outTime;
	}

	public void setOutTime(Date outTime) {
		this.outTime = outTime;
	}

	public Integer getBabyAge() {
		return babyAge;
	}

	public void setBabyAge(Integer babyAge) {
		this.babyAge = babyAge;
	}

	public Boolean getIsGrowth() {
		return isGrowth;
	}

	public void setIsGrowth(Boolean isGrowth) {
		this.isGrowth = isGrowth;
	}
	
}